package com.codeZ.FactoryPattern.simpleFactory.service.impl;

import com.codeZ.FactoryPattern.entity.AwardInfo;
import com.codeZ.FactoryPattern.entity.ResponseResult;
import com.codeZ.FactoryPattern.simpleFactory.service.IFreeGoods;

/**
 * 模拟打折券服务
 *
 * @author codeZhang
 * @Date 2024/7/31 17:46
 */
public class DiscountFreeGoodsService implements IFreeGoods {
    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        System.out.println("向用户发放一张打折券: " + awardInfo.getUid() + " , " + awardInfo.getAwardNumber());
        return new ResponseResult("200","打折券发放成功!","SUCCESS");
    }
}
